#ifndef QCREATEFILETHREAD_H
#define QCREATEFILETHREAD_H

#include <QThread>

class QCreateFileThread : public QThread
{
	Q_OBJECT

public:
	QCreateFileThread(QObject *parent);
	~QCreateFileThread();

	int m_nStartFileNum;
	int m_nEndFileNum;

	int m_nDirLayerNum;
	int m_nSubDirNumTop;
	int m_nSubDirNumOther;
	int m_nSubFileNumLast;
	int m_nSubFileNumMid;


	int m_nGenFileNum;
	int m_nTotalFileNum;

	int m_nFileKB;
	QString m_strSaveDir;
	int m_nIndex;
	bool m_bCNName;
	bool m_bContentRandom;
	int m_nFileNameLen;
	char* m_Buffer;
	void run();
	void CreateDir(QString strParent, int nLayer);
	void CreateFile(QString strDir, int nNum);
private:
	
signals:
	void sigUpdateStatus(QString, int, int);
};

#endif // QCREATEFILETHREAD_H
